<?php
if(!user_is_logged_in()) {
	$register_form = drupal_get_form('user_register_form');
	$rendered_form = drupal_render($register_form);

	print($rendered_form);
}
else {
	drupal_goto('user');
}
?>